← Course index · R113 Network & Systems
MMIBUT Métiers du Multimédia et de l'Internet · IUT de Vélizy

Appendix · Network frame analysis guide

Reference sheet for decoding frames: Ethernet II, ARP, IPv4, ICMP, TCP and UDP headers.

CourseReferenceLayers 2–4

01Layer 2 — Ethernet II frame

The analysis starts with the first 14 bytes: the physical transport envelope.

Destination MAC6 bytes
Source MAC6 bytes
EtherType2 bytes
Payload (data)46 – 1500 bytes
CRC4 bytes
FieldValue (hex)Content
EtherType08 00An IPv4 packet
EtherType08 06An ARP packet
EtherType86 DDAn IPv6 packet

02ARP packet (layer 2.5)

ARP maps IP addresses to MAC addresses. It is encapsulated directly in the Ethernet frame.

Hardware type2 B
Protocol type2 B
HLen / PLen2 B
Opcode2 B
Sender MAC6 B
Sender IP4 B
Target MAC6 B
Target IP4 B

Opcode 00 01

ARP request ("Who has…?")

Opcode 00 02

ARP reply ("I have…")

03Layer 3 — IPv4 packet

Located right after the Ethernet header when the EtherType is 08 00. The header is 20 bytes without options.

Ver / IHL1 B
ToS1 B
Total length2 B
Ident. / Flags / Frag.4 B
TTL1 B
Protocol1 B
Checksum2 B
Source IP4 B
Dest. IP4 B
Protocol field (hex)ProtocolTypical use
01ICMPPing, error messages
06TCPWeb, file transfer (reliable)
11UDPStreaming, DNS (fast, unreliable)

04Layer 4 — Transport protocols

A. ICMP (ping)

Type1 B
Code1 B
Checksum2 B
Datavariable
Ping analysis: type 08 = Echo Request (ping query) · type 00 = Echo Reply (ping response)

B. TCP (segment)

Source port2 B
Dest. port2 B
Sequence number4 B
Ack. number4 B
Offset / Flags2 B
Window · Checksum · Urgent6 B

Key flags: SYN (connect), ACK (acknowledge), FIN (end), RST (reset).

C. UDP (datagram)

Source port2 B
Dest. port2 B
Length2 B
Checksum2 B

Common ports

Port (dec)HexService
5300 35DNS
8000 50HTTP
44301 BBHTTPS